

<%@ page import="com.surelution.lansao.MemberAddress" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="mobile" />
        <g:set var="entityName" value="${message(code: 'memberAddress.label', default: 'MemberAddress')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${memberAddressInstance}">
            <div class="errors">
                <g:renderErrors bean="${memberAddressInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:each in="${memberAddresses }" var="ma">
            	${ma.building }(${ma.address })&nbsp;${ma.unit }<br/>
            </g:each>
            <g:form method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="address"><g:message code="memberAddress.address.label" default="Address" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: memberAddressInstance, field: 'address', 'errors')}">
                                    <g:textField name="address" value="${memberAddressInstance?.address}" />
                                    <g:hiddenField name="flashId" value="${params.flashId }"/>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="unit"><g:message code="memberAddress.unit.label" default="Unit" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: memberAddressInstance, field: 'unit', 'errors')}">
                                    <g:textField name="unit" value="${memberAddressInstance?.unit}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="mobileSave" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
